Skip to content

karma: remove unnecessary image mapping#1532

Merged
alxndrsn merged 6 commits into
getodk:masterfrom
alxndrsn:map-location-karma
May 25, 2026
Merged

karma: remove unnecessary image mapping#1532
alxndrsn merged 6 commits into
getodk:masterfrom
alxndrsn:map-location-karma

Conversation

@alxndrsn
Copy link
Copy Markdown
Contributor

@alxndrsn alxndrsn commented Apr 10, 2026

Ref https://github.com/getodk/central-frontend/pull/1531/changes#r3063568260

What has been done to verify that this works as intended?

Tests still pass without it.

Why is this the best possible solution? Were any other approaches considered?

Less code, less to think about.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

No effect - just test code.

Does this change require updates to user documentation? If so, please file an issue here and include the link below.

No.

Before submitting this PR, please make sure you have:

  • run npm run test and npm run lint and confirmed all checks still pass OR confirm CircleCI build passes
  • verified that any code or assets from external sources are properly credited in comments or that everything is internally sourced

@alxndrsn alxndrsn mentioned this pull request Apr 10, 2026
2 tasks
@alxndrsn alxndrsn marked this pull request as ready for review April 10, 2026 10:31
@alxndrsn alxndrsn requested a review from matthew-white May 19, 2026 13:20
Comment thread apps/central/karma.conf.js Outdated
'/v1/config/public/hero-image': '/base/apps/central/src/assets/images/whats-new/banner@1x.png',
'/v1/config/public/logo': '/base/apps/central/src/assets/images/odk-logo.png',
'/img/banner@1x.6c9e9f21.png': '/base/apps/central/src/assets/images/whats-new/banner@1x.png', // Smaller resolution for circleCI test
'/img/map-location.b523ce2d.svg': '/base/apps/central/src/assets/images/geojson-map/map-location.svg',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I bet Vite is inlining this SVG file, so it's no longer being requested and Karma no longer needs to serve it. I'm not sure though why map-location.svg would be inlined while fullscreen.svg isn't, given that fullscreen.svg is smaller. Maybe it's because of how map-location.svg is used (in src/util/map-styles.js). Not a question we need to answer, it's just interesting. In any case, things are definitely clearer with fewer images here, LGTM. 👍 Thank you, @alxndrsn!

@matthew-white
Copy link
Copy Markdown
Member

Unfortunately this PR probably will conflict with #1549. Might be worth waiting til #1549 is merged and then rebasing this one, just since #1549 is so large?

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 25, 2026

⚠️ No Changeset found

Latest commit: b463154

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@alxndrsn alxndrsn merged commit 0e83f77 into getodk:master May 25, 2026
43 checks passed
@alxndrsn alxndrsn deleted the map-location-karma branch May 25, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants